<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page language="java" import="recommenRatings.domain.*,java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%
	PlaceManager pm = new PlaceManager();
	Collection<String> ls = pm.stateFilter();
	Collection<String> lc = pm.cityFilter();
	Collection<String> lt = pm.typeFilter();
	Collection<String> lst = pm.subtypeFilter();
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Busqueda</title>

</head>
<body>

<form action="FrontController?res=placesAdvanced.jsp" method="post">

Provincia:<select name="state" size="1">
	<%
		for (String s : ls) {
	%>
	<option value="<%=s%>" name="state"><%=s%></option>
	<%
		}
	%>
</select><br>
Localidad:<select name="city" size="1">
	<%
		for (String s : lc) {
	%>
	<option value="<%=s%>" name="city"><%=s%></option>
	<%
		}
	%>
</select><br>

Subtipo:<select name="type" size="1">
	<%
		for (String s : lt) {
	%>
	<option value="<%=s%>" name="type"><%=s%></option>
	<%
		}
	%>
</select><br>

Tipo:<select name="subtype" size="1">
	<%
		for (String s : lst) {
	%>
	<option value="<%=s%>" name="subtype"><%=s%></option>
	<%
		}
	%>
</select><br>

<button type="submit">Buscar</button>

</form>

</body>
</html>